import Ax from './api';

export default {
  genFuncAdd: (param = {}) => Ax.put(`/generalFunc/add`, param),
  genFuncEdit: (param = {}) => Ax.put(`/generalFunc/edit`, param),
  genFuncDelete: (query = {}) => Ax.delete(`/generalFunc/delete?_id=${query._id}`),
  genFuncList: (param = {}) => Ax.post(`/generalFunc/list`, param),
  genFuncAll: (param = {}) => Ax.post(`/generalFunc/all`, param),
  genFuncDetail: (query = {}) => Ax.get(`/generalFunc/detail?_id=${query._id}`),
};
